/* 公共样式 */
@import 'var.scss';

/* mixin */
@mixin font-size($size) {
    font-size: $size;
}


/* ==================
          文本
 ==================== */
.text-Abc {
    text-transform: Capitalize;
}

.text-ABC {
    text-transform: Uppercase;
}

.text-abc {
    text-transform: Lowercase;
}

.text-price::before {
    content: "¥";
    font-size: 80%;
    margin-right: 2px;
}

.text-cut {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-content {
    line-height: 1.6;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.lh-32{
    line-height: 32px;
}

/*-- 字体大小 --*/
.j-text-xs {
    @include font-size($text-xs)
}

.j-text-sm {
    @include font-size($text-sm)
}

.j-text-df {
    @include font-size($text-df)
}

.j-text-lg {
    @include font-size($text-lg)
}

.j-text-xl {
    @include font-size($text-xl)
}

.j-text-xxl {
    @include font-size($text-xxl)
}

.fs-32{
    font-size: 32px;
}

/*-- 字体粗细 --*/
/* 细：不好看，谨慎使用 */
.j-text-slim {
    font-weight: $weight-slim;
}
/* 粗 */
.j-text-bold {
    font-weight: $weight-blod;
}
/* 稍粗 */
.j-text-mudium {
    font-weight: $weight-mudium;
}

/*-- 字体色 --*/
.j-text-main {
    color: $color-theme-main;
}

.j-text-dark {
    color: $color-text-dark;
}

.j-text-sub {
    color: $color-text-sub;
}

.j-text-second {
    color: $color-text-second;
}

.j-text-link{
    color: #409EFF;
    cursor: pointer;
}

.j-text-white{
    color: $color-bg;
}

.j-text-green{
    color: $color-sub-success;
}

.j-text-warning{
    color: $color-sub-warning;
}

.j-text-red{
    color: $color-sub-error;
}


/*-- 浮动 --*/
.cf::after,
.cf::before {
    content: " ";
    display: table;
}

.cf::after {
    clear: both;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

/** 文本缩进（em） **/
.text-indent-2,
.t-i-2 {
    text-indent: 2em;
}

/** 省略号 **/
.ellipsis {
    display: -webkit-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/** 多行省略号 **/
.ellipsis-1,
.ellipsis-2,
.ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ellipsis-2 {
    -webkit-line-clamp: 2;
}

.ellipsis-3 {
    -webkit-line-clamp: 3;
}

/*-- 边框 -------------------*/
.border-none{
    border: 0;
}
.border {
    border: 1px solid $color-border;
}

.border-top {
    border-top: 1px solid $color-border;
}

.border-bottom {
    border-bottom: 1px solid $color-border;
}

.border-right {
    border-right: 1px solid $color-border;
}

.border-left {
    border-left: 1px solid $color-border;
}

.border-primary {
    border: 1px solid $color-theme-main;
}

.border-success {
    border: 1px solid $color-sub-success;
}

.border-red {
    border: 1px solid $color-sub-error;
}

// 分割线
.border-line{
    border-top: 1px solid $color-line;
}

/*-- 圆角 --*/

/*圆角2px*/
.j-border-radius-xs {
    border-radius: $border-radius-xs;
}

/*圆角4px*/
.j-border-radius-sm {
    border-radius: $border-radius-sm;
}

/*圆角8px*/
.j-border-radius-df {
    border-radius: $border-radius-df;
}

/*圆角16px*/
.j-border-radius-xlg {
    border-radius: $border-radius-xlg;
}

/* ==================
          布局
 ==================== */

/*-- flex弹性布局 --*/
.flex {
    display: flex;
}

.basis-xs {
    flex-basis: 20%;
}

.basis-sm {
    flex-basis: 40%;
}

.basis-df {
    flex-basis: 50%;
}

.basis-lg {
    flex-basis: 60%;
}

.basis-xl {
    flex-basis: 80%;
}

.flex-sub {
    flex: 1;
}

.flex-twice {
    flex: 2;
}

.flex-treble {
    flex: 3;
}

.flex-direction {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-center {
    align-items: center;
}

.self-start {
    align-self: flex-start;
}

.self-center {
    align-self: flex-center;
}

.self-end {
    align-self: flex-end;
}

.self-stretch {
    align-self: stretch;
}

.align-baseline {
    align-items: baseline;
}

.align-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-auto {
    flex: auto;
}

.flex-none {
    flex: none;
}

/*-- 内外边距 --*/

.margin-0 {
    margin: 0;
}

.margin-xs {
    margin: 4px;
}

.margin-sm {
    margin: 10px;
}

.margin {
    margin: 14px;
}

.margin-lg {
    margin: 20px;
}

.margin-xl {
    margin: 24px;
}

.margin-top-xs {
    margin-top: 4px;
}

.margin-top-sm {
    margin-top: 10px;
}

.margin-top {
    margin-top: 14px;
}

.margin-top-lg {
    margin-top: 20px;
}

.margin-top-xl {
    margin-top: 24px;
}

.margin-right-xs {
    margin-right: 4px;
}

.margin-right-sm {
    margin-right: 10px;
}

.margin-right {
    margin-right: 14px;
}

.margin-right-lg {
    margin-right: 20px;
}

.margin-right-xl {
    margin-right: 24px;
}

.margin-bottom-xs {
    margin-bottom: 4px;
}

.margin-bottom-sm {
    margin-bottom: 10px;
}

.margin-bottom {
    margin-bottom: 14px;
}

.margin-bottom-lg {
    margin-bottom: 20px;
}

.margin-bottom-xl {
    margin-bottom: 24px;
}

.margin-left-xs {
    margin-left: 4px;
}

.margin-left-sm {
    margin-left: 10px;
}

.margin-left {
    margin-left: 14px;
}

.margin-left-lg {
    margin-left: 20px;
}

.margin-left-xl {
    margin-left: 24px;
}

.margin-lr-xs {
    margin-left: 4px;
    margin-right: 4px;
}

.margin-lr-sm {
    margin-left: 10px;
    margin-right: 10px;
}

.margin-lr {
    margin-left: 14px;
    margin-right: 14px;
}

.margin-lr-lg {
    margin-left: 20px;
    margin-right: 20px;
}

.margin-lr-xl {
    margin-left: 24px;
    margin-right: 24px;
}

.margin-tb-xs {
    margin-top: 4px;
    margin-bottom: 4px;
}

.margin-tb-sm {
    margin-top: 10px;
    margin-bottom: 10px;
}

.margin-tb {
    margin-top: 14px;
    margin-bottom: 14px;
}

.margin-tb-lg {
    margin-top: 20px;
    margin-bottom: 20px;
}

.margin-tb-xl {
    margin-top: 24px;
    margin-bottom: 24px;
}

.m-0{
    margin: 0;
}

.m-4 {
    margin: 4px;
}
.m-8 {
    margin: 8px;
}
.m-10 {
    margin: 10px;
}
.m-12 {
    margin: 12px;
}
.m-14 {
    margin: 14px;
}
.m-16 {
    margin: 16px;
}
.m-20 {
    margin: 20px;
}
.m-22 {
    margin: 22px;
}
.m-24 {
    margin: 24px;
}
.m-28 {
    margin: 28px;
}
.m-32 {
    margin: 32px;
}
.m-36 {
    margin: 36px;
}
.m-40 {
    margin: 40px;
}
.m-42 {
    margin: 42px;
}
.m-70 {
    margin: 70px;
}
.m-80 {
    margin: 80px;
}
.m-100 {
    margin: 100px;
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: 4px;
}
.mt-6 {
    margin-top: 6px;
}
.mt-8 {
    margin-top: 8px;
}
.mt-10 {
    margin-top: 10px;
}
.mt-12 {
    margin-top: 12px;
}
.mt-14 {
    margin-top: 14px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-22 {
    margin-top: 22px;
}
.mt-24 {
    margin-top: 24px;
}
.mt-28 {
    margin-top: 28px;
}
.mt-30 {
    margin-top: 30px;
}
.mt-32 {
    margin-top: 32px;
}
.mt-36 {
    margin-top: 36px;
}
.mt-40 {
    margin-top: 40px;
}
.mt-42 {
    margin-top: 42px;
}
.mt-48 {
    margin-top: 48px;
}
.mt-60 {
    margin-top: 60px;
}
.mt-70 {
    margin-top: 70px;
}
.mt-80 {
    margin-top: 80px;
}
.mt-100 {
    margin-top: 100px;
}

.mb-4 {
    margin-bottom: 4px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-12 {
    margin-bottom: 12px;
}
.mb-14 {
    margin-bottom: 14px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-22 {
    margin-bottom: 22px;
}
.mb-24 {
    margin-bottom: 24px;
}
.mb-28 {
    margin-bottom: 28px;
}
.mb-30 {
    margin-bottom: 30px;
}
.mb-32 {
    margin-bottom: 32px;
}
.mb-36 {
    margin-bottom: 36px;
}
.mb-40 {
    margin-bottom: 40px;
}
.mb-42 {
    margin-bottom: 42px;
}
.mb-48 {
    margin-bottom: 48px;
}
.mb-60 {
    margin-bottom: 60px;
}
.mb-70 {
    margin-bottom: 70px;
}
.mb-80 {
    margin-bottom: 80px;
}
.mb-100 {
    margin-bottom: 100px;
}

.ml-4 {
    margin-left: 4px;
}
.ml-6 {
    margin-left: 6px;
}
.ml-8 {
    margin-left: 8px;
}
.ml-10 {
    margin-left: 10px;
}
.ml-12 {
    margin-left: 12px;
}
.ml-14 {
    margin-left: 14px;
}
.ml-16 {
    margin-left: 16px;
}
.ml-20 {
    margin-left: 20px;
}
.ml-22 {
    margin-left: 22px;
}
.ml-24 {
    margin-left: 24px;
}
.ml-28 {
    margin-left: 28px;
}
.ml-30 {
    margin-left: 30px;
}
.ml-32 {
    margin-left: 32px;
}
.ml-36 {
    margin-left: 36px;
}
.ml-40 {
    margin-left: 40px;
}
.ml-42 {
    margin-left: 42px;
}
.ml-48 {
    margin-left: 48px;
}
.ml-50 {
    margin-left: 50px;
}

.mr-4 {
    margin-right: 4px;
}
.mr-8 {
    margin-right: 8px;
}
.mr-10 {
    margin-right: 10px;
}
.mr-12 {
    margin-right: 12px;
}
.mr-14 {
    margin-right: 14px;
}
.mr-16 {
    margin-right: 16px;
}
.mr-20 {
    margin-right: 20px;
}
.mr-22 {
    margin-right: 22px;
}
.mr-24 {
    margin-right: 24px;
}
.mr-28 {
    margin-right: 28px;
}
.mr-30 {
    margin-right: 30px;
}
.mr-32 {
    margin-right: 32px;
}
.mr-36 {
    margin-right: 36px;
}
.mr-40 {
    margin-right: 40px;
}
.mr-42 {
    margin-right: 42px;
}
.mr-48 {
    margin-right: 48px;
}
.mr-50 {
    margin-right: 50px;
}

.padding-0 {
    padding: 0;
}

.padding-xs {
    padding: 10px;
}

.padding-sm {
    padding: 20px;
}

.padding {
    padding: 30px;
}

.padding-lg {
    padding: 40px;
}

.padding-xl {
    padding: 50px;
}

.padding-top-xs {
    padding-top: 10px;
}

.padding-top-sm {
    padding-top: 20px;
}

.padding-top {
    padding-top: 30px;
}

.padding-top-lg {
    padding-top: 40px;
}

.padding-top-xl {
    padding-top: 50px;
}

.padding-right-xs {
    padding-right: 10px;
}

.padding-right-sm {
    padding-right: 20px;
}

.padding-right {
    padding-right: 30px;
}

.padding-right-lg {
    padding-right: 40px;
}

.padding-right-xl {
    padding-right: 50px;
}

.padding-bottom-xs {
    padding-bottom: 10px;
}

.padding-bottom-sm {
    padding-bottom: 20px;
}

.padding-bottom {
    padding-bottom: 30px;
}

.padding-bottom-lg {
    padding-bottom: 40px;
}

.padding-bottom-xl {
    padding-bottom: 50px;
}

.padding-left-xs {
    padding-left: 10px;
}

.padding-left-sm {
    padding-left: 20px;
}

.padding-left {
    padding-left: 30px;
}

.padding-left-lg {
    padding-left: 40px;
}

.padding-left-xl {
    padding-left: 50px;
}

.padding-lr-xs {
    padding-left: 10px;
    padding-right: 10px;
}

.padding-lr-sm {
    padding-left: 20px;
    padding-right: 20px;
}

.padding-lr {
    padding-left: 30px;
    padding-right: 30px;
}

.padding-lr-lg {
    padding-left: 40px;
    padding-right: 40px;
}

.padding-lr-xl {
    padding-left: 50px;
    padding-right: 50px;
}

.padding-tb-xs {
    padding-top: 10px;
    padding-bottom: 10px;
}

.padding-tb-sm {
    padding-top: 20px;
    padding-bottom: 20px;
}

.padding-tb {
    padding-top: 30px;
    padding-bottom: 30px;
}

.padding-tb-lg {
    padding-top: 40px;
    padding-bottom: 40px;
}

.padding-tb-xl {
    padding-top: 50px;
    padding-bottom: 50px;
}

.p-4 {
    padding: 4px;
}
.p-8 {
    padding: 8px;
}
.p-10 {
    padding: 10px;
}
.p-12 {
    padding: 12px;
}
.p-14 {
    padding: 14px;
}
.p-16 {
    padding: 16px;
}
.p-18 {
    padding: 18px;
}
.p-20 {
    padding: 20px;
}
.p-22 {
    padding: 22px;
}
.p-24 {
    padding: 24px;
}
.p-26 {
    padding: 26px;
}
.p-28 {
    padding: 28px;
}
.p-32 {
    padding: 32px;
}
.p-36 {
    padding: 36px;
}
.p-40 {
    padding: 40px;
}
.p-42 {
    padding: 42px;
}
.p-44 {
    padding: 44px;
}
.p-46 {
    padding: 46px;
}
.p-48 {
    padding: 48px;
}
.p-60 {
    padding: 60px;
}

.pt-4 {
    padding-top: 4px;
}
.pt-8 {
    padding-top: 8px;
}
.pt-10 {
    padding-top: 10px;
}
.pt-12 {
    padding-top: 12px;
}
.pt-14 {
    padding-top: 14px;
}
.pt-16 {
    padding-top: 16px;
}
.pt-18 {
    padding-top: 18px;
}
.pt-20 {
    padding-top: 20px;
}
.pt-22 {
    padding-top: 22px;
}
.pt-24 {
    padding-top: 24px;
}
.pt-26 {
    padding-top: 26px;
}
.pt-28 {
    padding-top: 28px;
}
.pt-30 {
    padding-top: 30px;
}
.pt-32 {
    padding-top: 32px;
}
.pt-36 {
    padding-top: 36px;
}
.pt-40 {
    padding-top: 40px;
}
.pt-42 {
    padding-top: 42px;
}
.pt-44 {
    padding-top: 44px;
}
.pt-46 {
    padding-top: 46px;
}
.pt-48 {
    padding-top: 48px;
}
.pt-60 {
    padding-top: 60px;
}
.pt-64 {
    padding-top: 64px;
}
.pt-120 {
    padding-top: 120px;
}
.pt-180 {
    padding-top: 180px;
}

.pb-4 {
    padding-bottom: 4px;
}
.pb-8 {
    padding-bottom: 8px;
}
.pb-10 {
    padding-bottom: 10px;
}
.pb-12 {
    padding-bottom: 12px;
}
.pb-14 {
    padding-bottom: 14px;
}
.pb-16 {
    padding-bottom: 16px;
}
.pb-18 {
    padding-bottom: 18px;
}
.pb-20 {
    padding-bottom: 20px;
}
.pb-22 {
    padding-bottom: 22px;
}
.pb-24 {
    padding-bottom: 24px;
}
.pb-26 {
    padding-bottom: 26px;
}
.pb-28 {
    padding-bottom: 28px;
}
.pb-30 {
    padding-bottom: 30px;
}
.pb-32 {
    padding-bottom: 32px;
}
.pb-36 {
    padding-bottom: 36px;
}
.pb-40 {
    padding-bottom: 40px;
}
.pb-42 {
    padding-bottom: 42px;
}
.pb-44 {
    padding-bottom: 44px;
}
.pb-46 {
    padding-bottom: 46px;
}
.pb-48 {
    padding-bottom: 48px;
}
.pb-60 {
    padding-bottom: 60px;
}
.pb-64 {
    padding-bottom: 64px;
}
.pb-120 {
    padding-bottom: 120px;
}
.pb-180 {
    padding-bottom: 180px;
}

.pl-4 {
    padding-left: 4px;
}
.pl-8 {
    padding-left: 8px;
}
.pl-10 {
    padding-left: 10px;
}
.pl-12 {
    padding-left: 12px;
}
.pl-14 {
    padding-left: 14px;
}
.pl-16 {
    padding-left: 16px;
}
.pl-18 {
    padding-left: 18px;
}
.pl-20 {
    padding-left: 20px;
}
.pl-22 {
    padding-left: 22px;
}
.pl-24 {
    padding-left: 24px;
}
.pl-26 {
    padding-left: 26px;
}
.pl-28 {
    padding-left: 28px;
}
.pl-30 {
    padding-left: 30px;
}
.pl-32 {
    padding-left: 32px;
}
.pl-36 {
    padding-left: 36px;
}
.pl-40 {
    padding-left: 40px;
}
.pl-42 {
    padding-left: 42px;
}
.pl-44 {
    padding-left: 44px;
}
.pl-46 {
    padding-left: 46px;
}
.pl-48 {
    padding-left: 48px;
}

.pr-4 {
    padding-right: 4px;
}
.pr-8 {
    padding-right: 8px;
}
.pr-10 {
    padding-right: 10px;
}
.pr-12 {
    padding-right: 12px;
}
.pr-14 {
    padding-right: 14px;
}
.pr-16 {
    padding-right: 16px;
}
.pr-18 {
    padding-right: 18px;
}
.pr-20 {
    padding-right: 20px;
}
.pr-22 {
    padding-right: 22px;
}
.pr-24 {
    padding-right: 24px;
}
.pr-26 {
    padding-right: 26px;
}
.pr-28 {
    padding-right: 28px;
}
.pr-30 {
    padding-right: 30px;
}
.pr-32 {
    padding-right: 32px;
}
.pr-36 {
    padding-right: 36px;
}
.pr-40 {
    padding-right: 40px;
}
.pr-42 {
    padding-right: 42px;
}
.pr-44 {
    padding-right: 44px;
}
.pr-46 {
    padding-right: 46px;
}
.pr-48 {
    padding-right: 48px;
}

/* ==================
          背景
 ==================== */

/*-- 背景色 --*/
.bg-default{
    background-color: $color-bg;
}

.bg-primary{
    background-color: $color-theme-main;
}

.bg-success{
    background-color: $color-bg-success;
}

.bg-shade{
    background-color: $color-shade-bg;
}

.bg-main-opaque{
    background-color: $color-bg-code;
}

.bg-red{
    background-color: $color-bg-red;
}

.bg-gray {
    background-color: $color-bg-gray;
}

// 默认阴影块
.bg-default-shadow{
    background-color: $color-bg;
    box-shadow:  0px 2px 16px 0px
    rgba(0, 0, 0, 0.1);
}

/* 绝对定位 底部 */
.fixed-top {
    position: fixed;
    left: 0;
    top: 0;
    width: 375px;
}

/* 绝对定位 底部 */
.fixed-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 375px;
}

.bottom-height {
    bottom: 12px;
}

/* 静态定位 底部 */
.static-bottom {
    width: 375px;
    margin: 32px 0;
}
/** 自动换行 **/
.break {
    word-break: break-all;
}

/** 列表空显示 **/
.no-wrap {
    display: none;
}

// 鼠标手势
.cursor-pointer{
    cursor: pointer;
}


// 自动换行
.break-all {
    word-break: break-all;
}

// 删除线
.delete-line{
    text-decoration: line-through;
}

// 超出滚动条
.overflow-y-auto{
    overflow-y: auto;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: #cdcdcd;
}

/* 等待 */
.pendingBg {
  background-color: #cdcdcd;
}

/* 运行 */
.runningBg {
  background-color: #006db8;
}

/* 暂停 */
.suspendedBg {
  background-color: #6634b3;
}

/* 完成 */
.successBg {
  background-color: #059db3;
}

/* 取消 */
.cancelBg {
  background-color: #df8300;
}

/* 失效 */
.failBg {
  background-color: #cf1b47;
}

.errorBg {
  background-color: #cf1b47;
}





